$(function() {
  $(".zhgl-map-track-speend span").click(function() {
    $(".zhgl-map-track-speend span").removeClass("active");
    $(this).addClass("active")
  })
  $(".zhgl-map-track-start").click(function() {
    $(".zhgl-map-track-start div").toggle();
  })
  $(".pack-btn").click(function() {
    $(".pack-btn div").toggle();
    $(".zhgl-map-track-info").toggle();
  })
  // $(".zhgl-map-track-play-btn").dragging({
  //   move: 'x', //拖动方向，x y both
  //   randomPosition: false, //初始位置是否随机
  // });


  var action=false;
  $('.zhgl-map-track-start').click(function(){
    if(action){
      $.playBar.Stop();
      action=false;
      // $(this).html("开始");
      $(".open-bar").show();
      $(".stop-bar").hide();

      }else{
        $.playBar.Begin();
        action=true;
        // $(this).html("停止");
        $(".open-bar").hide();
        $(".stop-bar").show();
        }
    });
  $.playBar.addBar($('.play-bar-container'),1000*60);
  // $.playBar.changeBarColor("#72dfff");



})
